<form method="post">
<table style="margin:2px;" cellpadding="2px" cellspacing="2px">
	<?php if ($typeU != 3) { ?>
	<tr id="static_rows">
		<td>Provinsi </td><td> : </td><td>
			<select name="provinsi" style="width: 200px" onchange="load_options(this.value, 'kabkota');">
				<option value=""> -- Pilih Provinsi --</option>
				<?php foreach ($rpropinsi as $row) { ?>
					<option value="<?php echo $row->kd_propinsi; ?>"> <?php echo $row->nama_propinsi; ?> </option>
				<?php } ?>
			</select>
		</td>
	</tr>
	<tr id="static_rows">
		<td>Kab/Kota </td><td> : </td><td>
			<select name="kabkota" id="kabkota" style="width: 200px">
				<option value=""> -- Pilih Kabkota --</option>
			</select>
		</td>
	</tr>
	<?php } ?>
	<tr id="static_rows">
		<td>Tahun</td><td> : </td><td>
			<select name="tahun">
				<option value="-">-- Pilih Tahun --</option>
				<option value="2013">2013</option>
				<option value="2014">2014</option>
			</select>
		</td>
	</tr>
	<tr id="static_rows">
		<td colspan="6" align="right"><input type="submit" value="Submit"></td>
	</tr>
</table>
</form>

<center>
<h3 id="jdl">
Updata Data MP<br>
Propinsi <?php echo $dpropinsi->nama_propinsi; ?><?php if ($typeU == 3 || is_object($rkabkota)) { ?>, Kabkota <?php echo $rkabkota->nama_kabkota; ?> <?php } ?><br>
<?php if ($thn != '-') { ?> Tahun Anggaran <?php echo $thn; ?><br> <?php } ?>
</h3>
</center>

<table class="table-display" id="main-table" style="background:white;">
	<thead style="background:#7F7F7F;color:white">
		<tr id="static_rows">
			<th rowspan="2">Kegiatan</th>
			<th rowspan="2">Output</th>
			<th rowspan="2">Sub-output</th>
			<th rowspan="2">Uraian</th>
			<th colspan="2">Lokasi Detail</th>
			<th rowspan="2">Tahun Rencana</th>
			<th rowspan="2">Tahun Usulan</th> 
			<th colspan="9">Usulan sumber pendanaan</th>
			<th rowspan="2">Action</th>
		</tr>
		<tr id="static_rows">
			<th>Kab/Kota</th>
			<th>Lokasi Rinci</th>
			<th class="small">APBN</th>
			<th class="small">Hibah</th>
			<th class="small">PLN</th>
			<th class="small">APBD Propinsi</th>
			<th class="small">APBD Kota</th> 
			<th class="small">PDAM</th>
			<th class="small">Msyrkt</th>
			<th class="small">Swasta</th>
			<th class="small">DAK</th>
		</tr>
	</thead>
	<tbody>
		<?php foreach ($rpijm as $row) { ?>
			<tr id="static_rows">
				<td><img id="kegimg" src="<?php echo base_url(); ?>style/images/details_open.png"> <a class="ex-row" href="#" title="<?php echo $row->nama_kegiatan; ?>"><?php echo $row->kd_kegiatan; ?></a></td>
				<td><?php echo $row->output; ?></td>
				<td><?php echo $row->sub_output; ?></td>
				<td><?php echo $row->nama_kegiatan; ?></td>
				<td><?php echo $row->kabkota; ?></td>
				<td><?php echo $row->lokasirinci; ?></td>
				<td><?php echo $row->lokasirinci; ?></td>
				<td><?php echo $row->lokasirinci; ?></td> 
				<td align="right"><?php echo number_format($row->apbn); ?></td>
				<td align="right"><?php echo number_format($row->pln); ?></td>
				<td align="right"><?php echo number_format($row->hibah); ?></td>
				<td align="right"><?php echo number_format($row->apbd1); ?></td>
				<td align="right"><?php echo number_format($row->apbd2); ?></td>
				<td align="right"><?php echo number_format($row->pdam); ?></td>
				<td align="right"><?php echo number_format($row->swasta); ?></td>
				<td align="right"><?php echo number_format($row->masy); ?></td>
				<td align="right"><?php echo number_format($row->dak); ?></td>
				<td></td>
			</tr>
		<?php } ?>
	</tbody>
</table>
